﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMaster.Master" AutoEventWireup="true" CodeBehind="UserManage.aspx.cs" Inherits="BookManageSys.Admin.UserManage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <style type="text/css">
        .auto-style3 {
            width: 154px;
        }
        .auto-style4 {
            width: 200px;
        }
        .auto-style6 {
            height: 20px;
        }
        .auto-style7 {
            width: 56px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <table class="auto-style1">
        <tr>
            <td class="" rowspan="2">
                <table class="">
                    <tr>
                        <td class="">用户ID</td>
                        <td>
                            <asp:TextBox ID="TxtUserid" runat="server" ReadOnly="True"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="">用户名：</td>
                        <td>
                            <asp:TextBox ID="TxtUsername" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="">密码：</td>
                        <td>
                            <asp:TextBox ID="TxtPassword" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="">地址：</td>
                        <td>
                            <asp:TextBox ID="TxtAddress" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="">电话</td>
                        <td>
                            <asp:TextBox ID="TxtTelephone" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="">
                            <asp:Button ID="BtnAdd" runat="server" Text="添加" OnClick="BtnAdd_Click" />
                        </td>
                        <td>
                            <asp:Button ID="BtnUpdate" runat="server" Text="更新" OnClick="BtnUpdate_Click" />
                        </td>
                    </tr>
                </table>
            </td>
            <td class="auto-style6">用户名称：<asp:TextBox ID="TxtSearch" runat="server"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;
                            <asp:Button ID="BtnSearch" runat="server" Text="查询" OnClick="BtnSearch_Click" />
                        </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AutoGenerateSelectButton="True" Width="780px" OnRowCommand="GridView1_RowCommand" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                    <Columns>
                        <asp:BoundField DataField="userid" HeaderText="用户ID" />
                        <asp:BoundField DataField="username" HeaderText="用户名" />
                        <asp:BoundField DataField="password" HeaderText="密码" />
                        <asp:BoundField DataField="address" HeaderText="地址" />
                        <asp:BoundField DataField="telephone" HeaderText="电话" />
                        <asp:TemplateField HeaderText="删除">
                            <ItemTemplate>
                                <asp:Button ID="Button1" runat="server" CommandArgument='<%# Eval("userid") %>' CommandName="删除" Text="删除" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
